[Bug]: Email settings endpoint returns HTTP 400 with port parameter t…#60290
[Bug]: Email settings endpoint returns HTTP 400 with port parameter t…#60290Feredzhanov wants to merge 1 commit into
Conversation
…ype mismatch
Affected Version: 33.0.3+
Issue: POST /settings/admin/mailsettings returns HTTP 400 for all users
Root Cause: Vue admin frontend sends port as numeric JSON ("mail_smtpport": 587), but controller declares string $mail_smtpport. AppFramework doesn't auto-cast int→string, causing TypeError.
Workaround: Use occ config:system:set CLI instead
Signed-off-by: Spiderm@n™ <Feredzhanov@users.noreply.github.com>
provokateurin
left a comment
There was a problem hiding this comment.
I think this should be fixed in the frontend.
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
…ype mismatch
Affected Version: 33.0.3+
Issue: POST /settings/admin/mailsettings returns HTTP 400 for all users
Root Cause: Vue admin frontend sends port as numeric JSON ("mail_smtpport": 587), but controller declares string $mail_smtpport. AppFramework doesn't auto-cast int→string, causing TypeError.
Workaround: Use occ config:system:set CLI instead
Summary
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)